﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="GroupCompetence_Manager.aspx.cs"
    Inherits="page_GroupCompetence_Manager" %>

<%@ Register Assembly="Infragistics2.WebUI.UltraWebGrid.v7.1, Version=7.1.20071.40, Culture=neutral, PublicKeyToken=7dd5c3163f2cd0cb"
    Namespace="Infragistics.WebUI.UltraWebGrid" TagPrefix="igtbl" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link href="../style/main.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript">
        function Check()
        {
            if(window.confirm("确定更新该组所拥有的权限!"))
            {
                return true;
            }
            else
            {
                return false;
            }
        }    
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <br />
    <div style="text-align: center;">
        <table style="width: 98%; background-color: #85BDE2; vertical-align: middle;" border="0px"
            cellpadding="0px" cellspacing="1px">
            <tr style="background-color: #DAE7F8;">
                <td style="height: 24px" bgcolor="#DAE7F8">
                    <strong>用户组权限管理 </strong>
                </td>
            </tr>
            <tr style="background-color: #DAE7F8;">
                <td>
                    <table style="width: 100%; background-color: #85BDE2" border="0px" cellpadding="0px"
                        cellspacing="1px">
                        <tr style="background-color: #DAE7F8;">
                            <td style="width: 13%;">
                                组名称
                            </td>
                            <td colspan="2">
                                组所拥有的权限
                            </td>
                        </tr>
                        <tr style="background-color: #DAE7F8;">
                            <td style="width: 13%; text-align: left;background-color: White">
                                <asp:TreeView ID="tvOperGroup" runat="server" NodeIndent="10" OnSelectedNodeChanged="tvOperGroup_SelectedNodeChanged"
                                    Height="330px" Width="100%" ShowExpandCollapse="False" BorderColor="Gray" BorderStyle="Solid"
                                    BorderWidth="1px">
                                    <ParentNodeStyle Font-Bold="False" />
                                    <HoverNodeStyle Font-Underline="True" ForeColor="#5555DD" />
                                    <SelectedNodeStyle Font-Underline="True" HorizontalPadding="0px" VerticalPadding="0px"
                                        ForeColor="#5555DD" />
                                    <NodeStyle Font-Names="Verdana" Font-Size="8pt" ForeColor="Black" HorizontalPadding="0px"
                                        NodeSpacing="0px" VerticalPadding="0px" />
                                </asp:TreeView>
                            </td>
                            <td colspan="2">
                                <igtbl:UltraWebGrid ID="wgMain" runat="server" Height="220px" Width="100%" Style="top: 0px;
                                    left: 0px; height: 214px">
                                    <Bands>
                                        <igtbl:UltraGridBand AllowUpdate="Yes">
                                            <AddNewRow View="NotSet" Visible="NotSet">
                                            </AddNewRow>
                                            <Columns>
                                                <igtbl:UltraGridColumn BaseColumnName="ID" HeaderText="ID" Hidden="True" Key="ID">
                                                    <Header Caption="ID">
                                                    </Header>
                                                </igtbl:UltraGridColumn>
                                                <igtbl:UltraGridColumn HeaderText="状态" Key="Status" Type="CheckBox" Width="20%">
                                                    <Header Caption="状态">
                                                        <RowLayoutColumnInfo OriginX="1" />
                                                    </Header>
                                                    <Footer>
                                                        <RowLayoutColumnInfo OriginX="1" />
                                                    </Footer>
                                                </igtbl:UltraGridColumn>
                                                <igtbl:UltraGridColumn BaseColumnName="Name" HeaderText="权限名称" Width="30%" Key="Name">
                                                    <Header Caption="权限名称">
                                                        <RowLayoutColumnInfo OriginX="2" />
                                                    </Header>
                                                    <Footer>
                                                        <RowLayoutColumnInfo OriginX="2" />
                                                    </Footer>
                                                </igtbl:UltraGridColumn>
                                                <igtbl:UltraGridColumn BaseColumnName="Description" FooterText="权限描述" HeaderText="权限功能描述"
                                                    Width="50%" Key="Description">
                                                    <Header Caption="权限功能描述">
                                                        <RowLayoutColumnInfo OriginX="3" />
                                                    </Header>
                                                    <CellStyle HorizontalAlign="Left">
                                                    </CellStyle>
                                                    <Footer Caption="权限描述">
                                                        <RowLayoutColumnInfo OriginX="3" />
                                                    </Footer>
                                                </igtbl:UltraGridColumn>
                                            </Columns>
                                            <RowTemplateStyle BackColor="Window" BorderColor="Window" BorderStyle="Ridge">
                                                <BorderDetails WidthBottom="3px" WidthLeft="3px" WidthRight="3px" WidthTop="3px" />
                                            </RowTemplateStyle>
                                            <RowEditTemplate>
                                                <asp:CheckBox ID="cbStatus" runat="server" /><br />
                                                <p align="center">
                                                    <input id="igtbl_reOkBtn" onclick="igtbl_gRowEditButtonClick(event);" style="width: 50px"
                                                        type="button" value="OK" />&nbsp;
                                                    <input id="igtbl_reCancelBtn" onclick="igtbl_gRowEditButtonClick(event);" style="width: 50px"
                                                        type="button" value="Cancel" /></p>
                                            </RowEditTemplate>
                                        </igtbl:UltraGridBand>
                                    </Bands>
                                    <DisplayLayout AllowColSizingDefault="Free" Version="4.00" SelectTypeRowDefault="Extended"
                                        Name="wgMain" AllowSortingDefault="OnClient" AllowUpdateDefault="Yes" RowHeightDefault="20px"
                                        TableLayout="Fixed" ViewType="OutlookGroupBy" AllowColumnMovingDefault="OnServer"
                                        HeaderClickActionDefault="SortMulti" StationaryMargins="Header" BorderCollapseDefault="Separate"
                                        StationaryMarginsOutlookGroupBy="True" AllowAddNewDefault="Yes" AutoGenerateColumns="False">
                                        <FrameStyle Font-Names="Microsoft Sans Serif" Font-Size="8.25pt" BackColor="Window"
                                            BorderWidth="1px" BorderStyle="Solid" Height="220px" Width="100%">
                                        </FrameStyle>
                                        <Pager MinimumPagesForDisplay="2" AllowCustomPaging="True" NextText="下页" PrevText="上页"
                                            StyleMode="PrevNext">
                                            <Style BackColor="#DAE7F8" BorderWidth="1px" BorderStyle="Solid" Height="26px">
                                                <BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px" /></Style>
                                        </Pager>
                                        <EditCellStyleDefault BorderWidth="0px" BorderStyle="None">
                                        </EditCellStyleDefault>
                                        <FooterStyleDefault BackColor="LightGray" BorderWidth="1px" BorderStyle="Solid">
                                            <BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px">
                                            </BorderDetails>
                                        </FooterStyleDefault>
                                        <HeaderStyleDefault HorizontalAlign="Left" BorderStyle="Solid" Height="26px">
                                            <BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px">
                                            </BorderDetails>
                                        </HeaderStyleDefault>
                                        <RowStyleDefault Font-Names="Microsoft Sans Serif" Font-Size="8.25pt" BackColor="Window"
                                            BorderColor="Silver" BorderWidth="1px" BorderStyle="Solid">
                                            <Padding Left="3px"></Padding>
                                            <BorderDetails ColorLeft="Window" ColorTop="Window"></BorderDetails>
                                        </RowStyleDefault>
                                        <GroupByRowStyleDefault BackColor="Control" BorderColor="Window">
                                        </GroupByRowStyleDefault>
                                        <GroupByBox Hidden="True" Prompt="">
                                            <Style BackColor="ActiveBorder" BorderColor="Window">
                                                </Style>
                                        </GroupByBox>
                                        <AddNewBox>
                                            <Style BackColor="Window" BorderColor="InactiveCaption" BorderWidth="1px" BorderStyle="Solid">
                                                <BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px" /></Style>
                                        </AddNewBox>
                                        <ActivationObject BorderColor="" BorderWidth="">
                                        </ActivationObject>
                                        <FilterOptionsDefault>
                                            <FilterOperandDropDownStyle CustomRules="overflow:auto;" Font-Names="Verdana,Arial,Helvetica,sans-serif"
                                                Font-Size="11px" BackColor="White" BorderColor="Silver" BorderWidth="1px" BorderStyle="Solid">
                                                <Padding Left="2px"></Padding>
                                            </FilterOperandDropDownStyle>
                                            <FilterDropDownStyle CustomRules="overflow:auto;" Font-Names="Verdana,Arial,Helvetica,sans-serif"
                                                Font-Size="11px" BackColor="White" BorderColor="Silver" BorderWidth="1px" BorderStyle="Solid"
                                                Height="300px" Width="200px">
                                                <Padding Left="2px"></Padding>
                                            </FilterDropDownStyle>
                                            <FilterHighlightRowStyle ForeColor="White" BackColor="#151C55">
                                            </FilterHighlightRowStyle>
                                        </FilterOptionsDefault>
                                    </DisplayLayout>
                                </igtbl:UltraWebGrid>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr style="background-color: #DAE7F8;">
                <td align="left" style="background-color: #DAE7F8; text-align: center;" height="26px">
                    &nbsp;<asp:Button ID="btnAdd" runat="server" Height="22px" Text="更新组权限" Width="90px"
                        OnClick="btnAdd_Click" OnClientClick="return Check()" />
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
